<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="x" uri="/WEB-INF/tags/coretag.tld" %>
<%@ taglib prefix="u" tagdir="/WEB-INF/tags" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <%@ include file="/WEB-INF/include/include.jsp" %>
  </head>
  <script type="text/javascript">
  	function testReload(){
  		var store=Ext.getCmp("comboxTest").getStore();
  		var condition=new Condition("id","BFAB6B74731711E1901E02004C4F4F50");
  		store.clearCondition();
  		store.addCondition(condition);
  		store.load();
  	}
  	
  </script>
  
  <body> 

  <div id="comboboxWrap1"></div>
  <div id="comboboxWrap2"></div>
   <div id="buttonWrap"></div>
  <u:page>
  
  		<u:formPanel.comboxserver  renderTo="comboboxWrap1" 
  		size="80"
  		fieldLabel="用户"
  		autoLoad="true"
  		fields="['id','index_name']" 
  		displayField="index_name"
  		handlerName="OappIndexLoadHandler" 
  		valueField="id" 
  		datasetName="OappIndexDataSetHandler"></u:formPanel.comboxserver>
  	
  	
  		<u:formPanel.comboxserver id="comboxTest" editable="true"  forceSelection="false" renderTo="comboboxWrap2" 
  		conditions='[{fieldName:\'id\',value:\'BFAB6B70731711E1901E02004C4F4F50\'}]'
  		fieldLabel="用户2"
  		autoLoad="true"
  		fields="['id','index_name']" 
  		valueField="id" 
  		displayField="index_name"
  		handlerMethod="queryOne" 
  		handlerName="OappIndexLoadHandler" 
  		datasetName="OappIndexDataSetHandler">
  		
  		</u:formPanel.comboxserver>
  		<u:button text="测试重新加载" handler="testReload"  renderTo="buttonWrap" ></u:button>
  	 
  </u:page>
  
  </body>
</html>
